import request from "@/utils/request";

export function queryPage(data) {
  return request({
    url: "/sysToUser/queryPage",
    method: "post",
    data
  })
}

export function insertByModel(data) {
  return request({
    url: "/sysToUser/insertByModel",
    method: "post",
    data
  })
}

export function updateByModel(data) {
  return request({
    url: "/sysToUser/updateByModel",
    method: "post",
    data
  })
}

export function deleteByModel(data) {
  return request({
    url: "/sysToUser/delete",
    method: "post",
    data
  })
}

export function queryProjectList(data) {
  return request({
    url: "/projectUser/queryList",
    method: "get",
    params: data
  })
}

export function queryUserPcMenuList(data) {
  return request({
    url: "/sysToUser/queryUserPcMenuList",
    method: "get",
    params: data
  })
}

export function saveUserPcMenu(data) {
  return request({
    url: "/sysToUser/saveUserPcMenu",
    method: "post",
    data
  })
}

export function queryUserAppMenuList(data) {
  return request({
    url: "/sysToUser/queryUserAppMenuList",
    method: "get",
    params: data
  })
}

export function saveUserAppMenu(data) {
  return request({
    url: "/sysToUser/saveUserAppMenu",
    method: "post",
    data
  })
}
